					<!--{hook thread_list_inc_start.htm}-->

					<?php 
					if($threadlist) { 
						$have_allowtop = 0;
						foreach($threadlist as &$_thread) {
							$_thread['allowtop'] = forum_access_mod($_thread['fid'], $gid, 'allowtop');
							if($_thread['allowtop']) $have_allowtop = 1;
						}
					}
					?>

					<?php if($threadlist) { foreach($threadlist as &$_thread) { 

					//2017-07-04升级后台设置标题长度，超出则裁剪掉
					if($huux_style_one['hso_title_length']!=0) { 
						$len = $huux_style_one['hso_title_length'] ;
						if(xn_strlen($_thread['subject']) > $len){
						    $_thread['subject'] = xn_substr($_thread['subject'], 0, $len).'...';
						}
					}
					?>
					<tr class="thread tap <?php echo $_thread['top_class'];?>" href="<?php echo url("thread-$_thread[tid]");?>" tid="<?php echo $_thread['tid'];?>">
						<?php if($have_allowtop) { ?>
							<?php if($_thread['allowtop']) { ?>
							<td class="td-checkbox">
								<label style="width: 100%; height: 100%;">
									<input type="checkbox" name="modtid" class="m-t-sm" value="<?php echo $_thread['tid']; ?>" />
								</label>
							</td>

							<?php } else {?>
						
							<td>&nbsp;</td>

							<?php } ?>
						
						<?php } ?>



						<!-- 主题列表头像 -->
						<?php if($huux_style_one['hso_threadlist1_avatar']) { 
						$avatardisplay='avatar';
						$huux_style_one['hso_threadlist1_avatar']==2 && $avatardisplay='avatar avatar-square';

						?>
						<td class="td-avatar">
							<a href="<?php echo url("user-$_thread[uid]");?>" tabindex="-1">
								<img class="<?php echo $avatardisplay;?>" src="<?php echo $_thread['user_avatar_url'];?>">
							</a>
							<!--{hook thread_list_inc_avatar_after.htm}-->
						</td>
						<?php } ?>

						
						<td class="td-subject p-l-0">
							<div class="subject">
							
								<!--{hook thread_list_inc_top_icon_before.htm}-->
							
								<?php if($_thread['top'] > 0) { ?>
									<i class="icon-top-<?php echo $_thread['top']; ?>"></i></i>
								<?php } ?>
								
								<!--{hook thread_list_inc_subject_forum_before.htm}-->
								
								
								
								<!-- 这里fid->名称移动到下方 -->

								<!--{hook thread_list_inc_subject_before.htm}-->
								
								<a href="<?php echo url("thread-$_thread[tid]");?>"><?php echo $_thread['subject'];?></a>
								
								<!--{hook thread_list_inc_subject_after.htm}-->
								
								<?php if($_thread['files'] > 0) { ?><i class="icon small filetype other"></i><?php } ?>
								
								<!--{hook thread_list_inc_filetype_icon_after.htm}-->
								
								<?php if($_thread['closed'] > 0) { ?><i class="icon-lock"></i><?php } ?>
								
							</div>
							<dl class="row" >
								<dt>
								<?php if(!$fid) { ?>
								<a href="<?php echo url("forum-$_thread[fid]");?>" class="node hidden-md-down"><?php echo $_thread['forumname'];?></a><i class="hidden-md-down"> •</i>
								<?php } ?>
									<a href="<?php echo url("user-$_thread[uid]");?>" class="username <?php echo $_thread['lastuid'] ? 'hidden-md-down' : ''; ?>"><?php echo $_thread['username'];?></a> 
									<span class="date <?php echo $_thread['lastuid'] ? 'hidden-md-down' : ''; ?>">• <?php echo $_thread['create_date_fmt'];?></span>
									
									<!--{hook thread_list_inc_lastuid_before.htm}-->
									
									<?php if($_thread['lastuid']) { ?>
									<i class="hidden-md-down">• </i>最后回复
										<a href="<?php echo url("user-$_thread[lastuid]");?>" class="username"><?php echo $_thread['lastusername'];?></a>
										<span><?php echo $_thread['last_date_fmt'];?></span>
									<?php } ?>
									
									<!--{hook thread_list_inc_lastuid_after.htm}-->
									 
								</dt>
								<dd class="text-right">
									<!--{hook thread_list_inc_view_before.htm}-->
									<span class="m-r-1 state-false"><i class="icon-eye"></i> <?php echo $_thread['views'];?></span>
									<span class="hidden-xs-down m-r-1"><i class="icon-comments"></i> <?php echo $_thread['posts'];?></span>
									<!--{hook thread_list_inc_posts_after.htm}-->
								</dd>
							</dl>
							
									<?php 
									if($huux_style_one['hso_threadlist1_imgs']) { 

									// 获取图片组并进行64位编码，减少http请求，减少网站服务器的负担
									$threadlist_imgs = threadlist_imgs($_thread['firstpid']);
									if($threadlist_imgs){ $imgnums = count($threadlist_imgs);
									$threadlist_imgs = array_slice($threadlist_imgs,0,$huux_style_one['hso_threadlist1_imgs']); ?>
									<dl class="row threadlist-imgs"><dt>
										<div class="card">
											<div class="card-block">
											<?php foreach($threadlist_imgs as $thread_img) {
													echo '<img src="'.$thread_img.'" class="m-r-xs m-b-xs">';
													}
													?>
											</div>
											<div class="card-footer">共 <?php echo $imgnums; ?> 张</div>
										</div></dt>
									</dl>
									<?php }} ?>

								
						</td>
						
					</tr>
					<?php }} else { ?>
					<tr>
						<td colspan="3"><?php echo lang('none');?></td>
					</tr>
					<?php } ?>
					<!--{hook thread_list_inc_end.htm}-->